import instance from "./axios";

const smshomePage=(data)=>{
    return instance.request({
        url:'mall/sms-home-advertise/page',
        method:'post',
        data
    })
}
const smshomeDelId=(id)=>{
    return instance.request({
        url:`mall/sms-home-advertise/del/${id}`,
        method:'get'
    })
}
const smshomeAdd=(data)=>{
    return instance.request({
        url:'mall/sms-home-advertise/add',
        method:'post',
        data
    })
}
const smshomeEdit=(data)=>{
    return instance.request({
        url:'mall/sms-home-advertise/edit',
        method:'post',
        data
    })
}
const smshomeOne = (id) => {
    return instance.request({
        url:`mall/sms-home-advertise/one/${id}`,
        method:'get'
    })
}
export {
    smshomePage,
    smshomeDelId,
    smshomeAdd,
    smshomeEdit,
    smshomeOne
}